package zjc;

public class 俩个数组同指向于一个地址 {
    public static void main(String[] args) {
        int arr1[]=new int[]{11,22,33};
        int arr2[]=arr1;
        System.out.println(arr1);
        System.out.println(arr2);
        System.out.println(arr1[0]);
        System.out.println(arr2[0]);
        System.out.println(arr2[1]);
        System.out.println(arr2[2]);
        arr2=null;
        System.out.println(arr2);
        //System.out.println(arr[0]);//报错
        //System.out.println(arr2.length);报错
    }
}
